import request from "@/utils/request.js"
export default {
    //登陆
    login(loginVo){
        return request({
            url: `/ucenter/login`,
            method: 'post',
            data: loginVo
        })
    },
    //通过token获取用户信息,request不需要传
    getUserInfo(){
        return request({
            url: `/ucenter/getUserInfoByToken`,
            method: 'get'
        })
    },
    //修改用户信息
    updataMemberInfo(member){
        return request({
            url: `/ucenter/updateMember`,
            method: 'post',
            data: member
        })
    },
    //获取会员自身信息
    getMemberInfoSelf(id){
        return request({
            url: `/ucenter/getMemberInfoById/${id}`,
            method: 'get'
        })
    },
    //修改密码
    ChangePassword(member){
        return request({
            url: `/ucenter/updatePwd`,
            method: 'post',
            data: member
        })
    }
}